import { Elysia } from 'elysia'

export const post = new Elysia({ prefix: '/api/post' })
  .get('/posts', () => [{ "name": "name1" }])
  .get('/posts/:id', () => 'posts get id')
  .post('/posts', () => 'posts')
  .patch('/posts', () => 'posts patch')
  .delete('/posts/:id', () => 'posts delete')